package com.designpattern.factory.abstract1;

import java.util.Calendar;

public class Client {
    public static void main(String[] args) {
        System.out.println("========小米系列=====");
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        iphoneProduct.callup();
        iphoneProduct.sendSMS();
        IRouterProduct irOuterProduct = xiaomiFactory.iRouterProduct();
        irOuterProduct.openWife();

        System.out.println("========华为系列=====");
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        IphoneProduct iphoneProduct1 = huaweiFactory.iphoneProduct();
        iphoneProduct1.callup();
        iphoneProduct1.sendSMS();
        IRouterProduct irOuterProduct1 = huaweiFactory.iRouterProduct();
        irOuterProduct1.openWife();

        Calendar.getInstance();
        Calendar.getInstance();
        Calendar.getInstance();
    }
}
